package util.models;

import java.util.Hashtable;

public class Tags {

	
	String tag;
	
	public Hashtable<String,Hashtable<String,Integer>> freq= new Hashtable<String,Hashtable<String,Integer>>();
	
	
	public int getFreq(String type, String tag){
		
		
		int f= 0;
		
		if(freq.containsKey(tag)){
			
			if(freq.get(tag).containsKey(type)){
				
				return freq.get(tag).get(type);
			}
		}
		
		return f;
	}
	
	
	
	public void addFreq(String type, String tag, int value){
		
		if(freq.containsKey(tag)){
			freq.get(tag).put(type, value);
			
		}else{
			
			Hashtable<String, Integer> n =  new Hashtable<String, Integer>();
			
			n.put(type, value);
			freq.put(tag, n);
		}
		
	}
	
}
